package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.PmsSkuSaleAttrValueEntity;
import com.atguigu.gulimall.product.vo.ItemSaleAttrVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * sku销售属性&值
 * 
 * @author zhangxiaosan
 * @email 424207204@qq.com
 * @date 2021-04-18 14:21:09
 */
@Mapper
public interface PmsSkuSaleAttrValueDao extends BaseMapper<PmsSkuSaleAttrValueEntity> {
    List<ItemSaleAttrVo> getSaleAttrsBuSpuId(@Param("spuId") Long spuId);

    List<String> getSaleAttrValueBySku(Long skuId);
}
